package com.example.yuejian.yuejian.base;


import android.content.Context;
import android.content.SharedPreferences;
import android.support.v4.app.Fragment;

/**
 * Created by Administrator on 2017/9/18.
 */

public abstract class BaseFragment extends Fragment {
    private SharedPreferences sp;
    protected Context context;
    public String getUser_id() {
        sp = getActivity().getSharedPreferences("UserInfo", Context.MODE_PRIVATE);
        return sp.getString("user_id", "");
    }
    public String get_Mid(){
        sp = getActivity().getSharedPreferences("Mid", Context.MODE_PRIVATE);
        return sp.getString("m_id",null);
    }
    public String get_Cid(){
        sp = getActivity().getSharedPreferences("Cid", Context.MODE_PRIVATE);
        return sp.getString("club_id",null);
    }
}
